#include<iostream>
#include"namesp.h"

void other(void);
void another(void);
int main()
{
	using debts::Debt;
	using debts::showDebt;

	Debt golf = { {"Benny","Goatsniff"},120.0 };
	showDebt(golf);
	other();
	another();

	return 0;
}

void other(void)
{
	pers::Person dg = { "Doodles","Glister" };
	pers::showPerson(dg);
	std::cout << std::endl;

	using namespace debts;
	Debt zippy[3];
	for (int i = 0; i < 3; i++)
		getDebt(zippy[i]);
	for (int i = 0; i < 3; i++)
		showDebt(zippy[i]);
	std::cout << "Total debts: " << sumDebt(zippy, 3) << std::endl;
	return;
}

void another(void)
{
	using namespace pers;
	Person collector = { "Milo","Rightshift" };
	showPerson(collector);
	std::cout << std::endl;
	return;
}